#ifndef PARSER_H
#define PARSER_H

#include <QtSql/QtSql>
#include <QFile>
#include <QString>
#include "sensor.h"
#include "../databasemanager.h"

class Parser
{
protected:
    QFile *f;
    DataBaseManager *db;
    QList<Sensor *> sensores;
public:
    void init();

    void setFile(QString file_name);
    virtual QStringList parse() = 0;
    virtual ~Parser();
    QList<Sensor *> getSensors();
};

#endif // PARSER_H
